package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;

/**
 * Created by lenovo on 2016/6/1.
 */
public class ContractChoosePagerActivity extends BasePagerActivity {

  protected static final String EXTRA_CONTRACT =
      "com.isunland.managesystem.ui.ContractChoosePagerActivity.EXTRA_CONTRACT";
  /** 判断是订单、合同、项目 */
  protected static final String EXTRA_TYPE =
      "com.isunland.managesystem.ui.ContractChoosePagerActivity.EXTRA_TYPE";
  protected static final String ORDER = "ORDER";
  protected static final String CONTRACT = "CONTRACT";
  protected static final String PROJECT = "PROJECT";
  private int[] mTitleId = {
      R.string.buySellContract, R.string.contractList,
      //            R.string.projectList
  };

  @Override protected Fragment createFragmentOne() {
    return new SingleBillListFragment();//订单
  }

  @Override protected Fragment createFragmentTwo() {
    //        return  SingleContractListFragment.newInstance(mManageCode);
    return new SingleContractListFragment();//合同
  }

  //    @Override
  //    public Fragment createFragmentThree() {
  //        return new  SingleProjectListFragment();//项目
  //    }

  @Override protected int[] createTitle() {
    return mTitleId;
  }
}
